using System;
using System.Collections.Generic;
using System.Text;
using Sedna.Core.Controller;
using Sedna.Core.Controller.Common;

namespace Sedna.Core.Controls.Actions
{
    public class ValidateIntegerValue : AbstractValidationAction
    {
        protected override bool Validate(IExecutionContext executionContext, string validationValue)
        {
            try
            {
                int.Parse(validationValue);
                return true;
            }
            catch
            {
                return false;
            }
        }
    }
}
